package cn.cqie.frame.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 评教结果
 * @author xieyihong
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="EvaluateResult对象", description="评教结果")
public class EvaluateResult extends Model<EvaluateResult> {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "计算时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @TableField("calculateTime")
    private Date calculateTime;

    @ApiModelProperty(value = "评教任务Id")
    @TableField(value = "evaluateTaskId")
    private Long evaluateTaskId;

    @ApiModelProperty(value = "教师Id")
    @TableField(value = "teacherId")
    private Long teacherId;

    @ApiModelProperty(value = "评教类型Id")
    @TableField(value = "evaluateTypeId")
    private Long evaluateTypeId;

    @ApiModelProperty(value = "权重")
    private BigDecimal weight;

    @ApiModelProperty(value = "应评人数")
    @TableField("requirePersonCount")
    private Integer requirePersonCount;

    @ApiModelProperty(value = "参评人数")
    @TableField("attendPersonCount")
    private Integer attendPersonCount;

    @ApiModelProperty(value = "得分值")
    private BigDecimal score;
}
